# frozen_string_literal: true
class CreateCars < ActiveRecord::Migration[5.0]
  def change
    create_table :cars do |t|
      t.references :village, foreign_key: true
      t.string :car_code
      t.datetime :leaved_at
      t.integer :cost

      t.timestamps
    end
  end
end
